import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:hockey/models/jzx_user_data.dart';

part 'jzx_token_data.freezed.dart';
part 'jzx_token_data.g.dart';

@freezed
class JzxTokenData with _$JzxTokenData {
  const factory JzxTokenData({
    int? aaaa,
    @Default(false) bool isFirstRegister,
    @Default('') String token,
    @Default(JzxUserData()) JzxUserData userInfo,
  }) = _JzxTokenData;

  factory JzxTokenData.fromJson(Map<String, Object?> json) =>
      _$JzxTokenDataFromJson(json);
}
